const install = (Vue, vm) => {
	// 公共部分
	// let setting = (params) => vm.$u.post('setting', params);
	let upload = (params) => vm.$u.post('upload', params); //上传图片
	// let smsSend = (params) => vm.$u.get('system/user/sendAuthCode/'+params.phone); //发送验证码
    
	// let register = (params) => vm.$u.post('system/user/enrollR', params); //注册
    // let getCate = (params) => vm.$u.post('doc/getCate', params);//首页获取分类
	// let getQuestion = (params) => vm.$u.post('doc/getQuestion', params);//问题列表
	// let miniapplogin = (params) => vm.$u.post('user/miniapplogin', params);//登录第一步
	// let getMobileInfo = (params) => vm.$u.post('user/getMobileInfo', params);//获取手机号
	// let getDoc = (params) => vm.$u.post('doc/getDoc', params);//详情
	// let addOrder = (params) => vm.$u.post('doc/addOrder', params);//下单
	// let pay = (params) => vm.$u.post('doc/pay', params);//支付
	// let getData = (params) => vm.$u.post('user/getData', params);//用户信息
	// let getBanner = (params) => vm.$u.post('index/getBanner', params);//轮播图
	// let myDoc = (params) => vm.$u.post('doc/myDoc', params);//我的协议

	let miniapplogin = (params) => vm.$u.post('user/miniapplogin', params);//登录第一步
	let getMobileInfo = (params) => vm.$u.post('user/getMobileInfo', params);//获取手机号
	let getBanner = (params) => vm.$u.post('index/getBanner', params);//轮播图
	let getAbout = (params) => vm.$u.post('index/getAbout', params);//关于
	let getHaoping = (params) => vm.$u.post('index/getHaoping', params);//好评
	let getYoushi = (params) => vm.$u.post('index/getYoushi', params);//优势
	let getGonglue = (params) => vm.$u.post('index/getGonglue', params);//省钱攻略
	let getQuestion = (params) => vm.$u.post('index/getQuestion', params);//问答
	let getVipList = (params) => vm.$u.post('index/getVipList', params);//获取支付
	let getZhuyi = (params) => vm.$u.post('index/getZhuyi', params);//获取注意事项
	let getShuju = (params) => vm.$u.post('index/getShuju', params);//获取实时数据
	let getCity = (params) => vm.$u.post('index/getCity', params);//获取城市
	let getDays = (params) => vm.$u.post('index/getDays', params);//获取天数
	let getCate = (params) => vm.$u.post('index/getCate', params);//获取类别
	let getConfig = (params) => vm.$u.post('index/getConfig', params);//获取考试天数
	let addChaOrder = (params) => vm.$u.post('order/addChaOrder', params);//立即查询考点
	
	let getDian = (params) => vm.$u.post('index/getDian', params);//获取报考点
	let getSchoolFrom = (params) => vm.$u.post('index/getSchoolFrom', params);//获取本科院校
	let userinfo = (params) => vm.$u.post('user/getData', params);//用户信息
	let getSchoolTo = (params) => vm.$u.post('index/getSchoolTo', params);//获取报考院校
	let addVipOrder = (params) => vm.$u.post('order/addVipOrder', params);//立即购买权限卡
	let pay = (params) => vm.$u.post('order/pay', params);//支付
	let getChaOrder = (params) => vm.$u.post('order/getChaOrder', params);//订单详情
	let getRelitu = (params) => vm.$u.post('index/getRelitu', params);//考点热力图
	let getDianList = (params) => vm.$u.post('index/getDianList', params);//获取长春所有考点
	let getBidu = (params) => vm.$u.post('index/getBidu', params);//获取研友必读
	let getVipOrderList = (params) => vm.$u.post('order/getVipOrderList', params);//权限卡券
	let getRefundDes = (params) => vm.$u.post('index/getRefundDes', params);//获取退款原因
	let refundVipOrder = (params) => vm.$u.post('order/refundVipOrder', params);//申请退款
	let getUserDianList = (params) => vm.$u.post('user/getUserDianList', params);//有偿收录列表
	let getYear = (params) => vm.$u.post('index/getYear', params);//获取年份
	let addUserDianList = (params) => vm.$u.post('user/addUserDianList', params);//有偿收录接口
	let getUserDianListInfo = (params) => vm.$u.post('user/getUserDianListInfo', params);//有偿收录详情接口
	
	vm.$u.api = {
		getBanner,
		getAbout,
		getHaoping,
		getYoushi,
		getGonglue,
		getQuestion,
		getVipList,
		getZhuyi,
		getShuju,
		getCity,
		getDays,
		getCate,
		getConfig,
		addChaOrder,
		miniapplogin,
		getMobileInfo,
		getDian,
		getSchoolFrom,
		userinfo,
		getSchoolTo,
		addVipOrder,
		pay,
		getChaOrder,
		getDianList,
		getRelitu,
		getBidu,
		getVipOrderList,
		getRefundDes,
		refundVipOrder,
		getUserDianList,
		getYear,
		addUserDianList,
		getUserDianListInfo
	};
}
export default {
	install
}
// let res = await this.$u.api.pickUpTheGoods({
// 	monadId:id
// });
// if(res.code == 200){
// 	this.$u.toast("提货成功");
// 	this.goodList = []
// 	this.getlist();
// }else{
// 	this.$u.toast("失败");
// }
//:src="ossThree(item.bigimage)"

// getClear(){
// 	this.list = []
// 	this.page = 1,
// 	this.status= "loadmore"
// 	this.getList()
// }
// shop_id:uni.getStorageSync('shop_id')
// :src="ossThree('/ui/twobg.png')"
// list: [],
// page: 1,
// limit: 10,
// last_page: 1,
// status: "loadmore",

{/* <u-loadmore :status="status" @loadmore="loadmore" /> */}

// async getList(){//列表数据
// 	let res = await this.$u.api.SearchHotel({
// 	  pagesize:this.limit,
// 	  pageindex:this.page
// 	});
// 	// console.log(res)
// 	// this.last_page = res.list.last_page;
// 	if(res.state == 0){
// 		let list = res.Data;
// 		this.list = this.page == 1 ? list : [...this.list, ...list];	
// 		// console.log(this.list)
// 		if(res.Data == ''){
// 		  this.status = 'nomore';
// 		}
	// if(this.page == 1){
	// 	if( this.list.length<this.limit){
	// 		this.status = 'nomore';
	// 	}
	// }
// 	}
	
// },
// loadmore() {
// 	let page = this.page;
// 	// let last_page = this.last_page;
// 	if (this.status == 'loadmore') {
// 		this.page++;
// 		this.getList();
// 	}
// },

// onReachBottom: function () {
// 	this.loadmore();
// },